-- GENERATED SPELL FOR [Chronalis] --


function spell0_8197(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8197', 585, 1)
end

function spell1_8197(pUnit, Event) --@Sand Breath,n/a--
pUnit:FullCastSpellOnTarget(20717,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8197', 12000, 1)
end

function Sorts_8197(pUnit, Event)
local choix_sorts_8197 = math.random(0, 1)
if choix_sorts_8197 == 0 then
pUnit:RegisterEvent('spell0_8197', 1, 1)
end
if choix_sorts_8197 == 1 then
pUnit:RegisterEvent('spell1_8197', 1, 1)
end
end

function mob8197_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8197', math.random(1500, 3000), 1)
end

function mob8197_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8197_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8197_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8197, 1, 'mob8197_Action')
RegisterUnitEvent(8197, 2, 'mob8197_Leave')
RegisterUnitEvent(8197, 3, 'mob8197_Kill')
RegisterUnitEvent(8197, 4, 'mob8197_Die')
